<!DOCTYPE html>
<html lang="zh">

<head>
    <title></title>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <script src="https://cdn.jsdelivr.net/npm/vue@2.6.14/dist/vue.js"></script>
    <link href="../css/style.css" rel="stylesheet"> </head>

<body>
    <div id="myApp">
        <my-weather></my-weather>
    </div>
    <script>
        var WeatherComponent = {
            template: '<div>今天下雨，随它去吧！</div>'
        };
        var myApp = new Vue({
            el: '#myApp',
            data: {},
            components: {
                'my-weather': WeatherComponent
            },
        });
    </script>
</body>

</html>